local mushroom_pizza_coutinue = fk.CreateSkill {
  name = "cf_mushroom_pizza_coutinue_skill"
}

Fk:loadTranslationTable {
  ["cf_mushroom_pizza_coutinue_skill"] = "烤蘑菇披萨"
}

mushroom_pizza_coutinue:addEffect(fk.EventPhaseStart, {
  can_trigger = function(self, event, target, player, data)
    return player:getMark("@cf_mushroom_pizza_skill") > 0 and player.phase == Player.Finish
  end,
  on_trigger = function(self, event, target, player, data)
    local room = player.room
    if player.dead then return end
    room:recover {
      num = 1,
      who = player,
      recoverBy = player,
      skillName = mushroom_pizza_coutinue.name
    }
    room:removePlayerMark(player, "@cf_mushroom_pizza_skill", 1)
  end
})

return mushroom_pizza_coutinue
